testutils: Run in UTF8 locale
authorBenjamin Otte <otte@redhat.com>
Fri, 12 Apr 2019 04:08:28 +0000 (06:08 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 12 Apr 2019 23:40:10 +0000 (01:40 +0200)
before, code was using the "C" locale, but that one uses ASCII. Instead,
run in the "C.utf8" locale.

Nobody expects code to not support UTF8 and no end user runs their
machine in an ASCII setup, so it makes no sense to default to that.

gtk/gtktestutils.c

index a105a7b27fb1a5f1aaa5881dae8505bc205a7a8d..9fe37861a844b9e79ab1b35b0e5aa1259b2b3333 100644 (file)
@@ -77,7 +77,7 @@ gtk_test_init (int    *argcp,
 {
   g_test_init (argcp, argvp, NULL);
   gtk_disable_setlocale();
-  setlocale (LC_ALL, "C");
+  setlocale (LC_ALL, "en_US.UTF-8");
   g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   /* XSendEvent() doesn't work yet on XI2 events.